import 'package:elephant_fish/http/request/base_request.dart';

class RankListRequest extends BaseRequest{
  int index;

  RankListRequest(int index){
    this.index = index;
  }

  @override
  HttpMethod httpMethod() {
    // TODO: implement httpMethod
    return HttpMethod.GET;
  }

  @override
  bool needLogin() {
    // TODO: implement needLogin
    throw true;
  }

  @override
  String path() {
    // TODO: implement path
    List<String> lists = [
      '/api/home/popularity',
      '/api/home/siege',
      '/api/home/week',
      '/api/home/month',
      '/api/home/popularity',
    ];
    return lists[index];
  }

}